using System;
using ZhCun.DbCore.Entitys;

namespace ZhCun.WebCommon.DBModels
{
	public partial class TSysLog : EntityBase
	{
		private System.Int16? _LogType;
		/// <summary>
		/// LogType
		/// </summary>
		[Entity(ColumnName = CNLogType)]
		public System.Int16? LogType
		{
			get { return _LogType; }
			set
			{
				_LogType = value;
				base.SetFieldChanged(CNLogType) ;
			}
		}

		private System.String _LogTag;
		/// <summary>
		/// LogTag
		/// </summary>
		[Entity(ColumnName = CNLogTag)]
		public System.String LogTag
		{
			get { return _LogTag; }
			set
			{
				_LogTag = value;
				base.SetFieldChanged(CNLogTag) ;
			}
		}

		private System.String _LogContent;
		/// <summary>
		/// LogContent
		/// </summary>
		[Entity(ColumnName = CNLogContent)]
		public System.String LogContent
		{
			get { return _LogContent; }
			set
			{
				_LogContent = value;
				base.SetFieldChanged(CNLogContent) ;
			}
		}

		private System.String _LoginName;
		/// <summary>
		/// LoginName
		/// </summary>
		[Entity(ColumnName = CNLoginName)]
		public System.String LoginName
		{
			get { return _LoginName; }
			set
			{
				_LoginName = value;
				base.SetFieldChanged(CNLoginName) ;
			}
		}

		private System.String _UserName;
		/// <summary>
		/// UserName
		/// </summary>
		[Entity(ColumnName = CNUserName)]
		public System.String UserName
		{
			get { return _UserName; }
			set
			{
				_UserName = value;
				base.SetFieldChanged(CNUserName) ;
			}
		}

		private System.String _UserId;
		/// <summary>
		/// UserId
		/// </summary>
		[Entity(ColumnName = CNUserId)]
		public System.String UserId
		{
			get { return _UserId; }
			set
			{
				_UserId = value;
				base.SetFieldChanged(CNUserId) ;
			}
		}

		private System.String _ClientSN;
		/// <summary>
		/// ClientSN
		/// </summary>
		[Entity(ColumnName = CNClientSN)]
		public System.String ClientSN
		{
			get { return _ClientSN; }
			set
			{
				_ClientSN = value;
				base.SetFieldChanged(CNClientSN) ;
			}
		}

		private System.Int32 _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsIdentity = true, IsNotNull = true)]
		public System.Int32 Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _AddUserId;
		/// <summary>
		/// AddUserId
		/// </summary>
		[Entity(ColumnName = CNAddUserId)]
		public System.String AddUserId
		{
			get { return _AddUserId; }
			set
			{
				_AddUserId = value;
				base.SetFieldChanged(CNAddUserId) ;
			}
		}

		private System.DateTime? _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(ColumnName = CNAddTime)]
		public System.DateTime? AddTime
		{
			get { return _AddTime; }
			set
			{
				_AddTime = value;
				base.SetFieldChanged(CNAddTime) ;
			}
		}

		private System.String _AddHost;
		/// <summary>
		/// AddHost
		/// </summary>
		[Entity(ColumnName = CNAddHost)]
		public System.String AddHost
		{
			get { return _AddHost; }
			set
			{
				_AddHost = value;
				base.SetFieldChanged(CNAddHost) ;
			}
		}

		#region 字段名的定义
		public const string CNLogType = "LogType";
		public const string CNLogTag = "LogTag";
		public const string CNLogContent = "LogContent";
		public const string CNLoginName = "LoginName";
		public const string CNUserName = "UserName";
		public const string CNUserId = "UserId";
		public const string CNClientSN = "ClientSN";
		public const string CNId = "Id";
		public const string CNAddUserId = "AddUserId";
		public const string CNAddTime = "AddTime";
		public const string CNAddHost = "AddHost";
		#endregion

	}
}
